﻿using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace RaptorEngine.Components.Drawable
{
	public class Drawable3DComponent : Drawable
	{
        protected Model _model;
		public Model Model { get { return _model; } }
        protected BasicEffect _effect;
        public BasicEffect Effect { get { return _effect; } set { _effect = value; } }

		public Drawable3DComponent(Entity e, Model model, BasicEffect effect) : base(e, ComponentType.Drawable3D)
        {
            _model = model;
            _effect = effect;
        }

        internal virtual void Update(GameTime gameTime)
        {
        }

		internal virtual void Draw(Matrix parentWorld, Matrix view, Matrix projection)
        {
        }
	}
}